﻿using System;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            TDD.SpreadSheet.Spreadsheet sheet = new TDD.SpreadSheet.Spreadsheet("AAB", 99);
            sheet.Put("A1", "=2*2*2+2+10+80/4/5-2");
            Console.WriteLine("A1 literal: {0}", sheet.GetLiteral("A1"));
            Console.WriteLine("A1 value: {0}", sheet.Get("A1"));

            sheet.Put("B1", "=A1*20");
            Console.WriteLine("B1 literal: {0}", sheet.GetLiteral("B1"));
            Console.WriteLine("B1 value: {0}", sheet.Get("B1"));

            sheet.Put("C1", "=20+B1");
            Console.WriteLine("C1 literal: {0}", sheet.GetLiteral("C1"));
            Console.WriteLine("C1 value: {0}", sheet.Get("C1"));

            Console.ReadLine();
        }
    }
}
